home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / PartMaker 4.4 / PartMaker Documents / Script Runner• / Script Runner•.rsrc / dFRK_5050 < prev    next >
Encoding:
Text File  |  1995-12-12  |  2.0 KB  |  94 lines

  1. /*------------------------------------------------------------------------------
  2.     File:        PaletteExt.idl
  3.  
  4.     Contains:    Palette interface
  5.  
  6.     Written by:    Sue Dumont
  7.                 Andrey Dolgachev
  8.  
  9.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  10. ------------------------------------------------------------------------------*/
  11.  
  12. #ifndef _PALETTEEXTENSION_
  13. #define _PALETTEEXTENSION_
  14.  
  15. #ifndef _EXTENSN_
  16. #include <Extensn.idl>
  17. #endif
  18.  
  19. #ifndef _SCRIPTRUNNERVERSION_
  20. #include "ScriptRunnerVers.h"
  21. #endif
  22.  
  23. //==============================================================================
  24. // Classes used by this interface
  25. //==============================================================================
  26.  
  27. interface     ODPart;
  28. interface     SampleCode_ScriptRunner;
  29.  
  30. //==============================================================================
  31. #pragma somemittypes on
  32.  
  33. const ODISOStr kPaletteExtension = "Apple Computer:Extension:ScriptPalette";
  34.  
  35.  
  36. #ifdef __PRIVATE__
  37. //==============================================================================
  38. // Implementation Types
  39. //==============================================================================
  40.  
  41. #endif 
  42.  
  43. //==============================================================================
  44. // som_SESettingsExtension
  45. //==============================================================================
  46.  
  47. module Samples
  48. {
  49.     interface PaletteExt : ODExtension
  50.     {
  51.         void             Show();
  52.         void            Hide();
  53.         ODBoolean        IsPaletteVisible();
  54.         ODBoolean        Move(in ODPoint topleft);
  55.         ODPoint*        GetLocation();
  56.         void            SetClient(in ODPart client);        
  57.         
  58. #ifdef __SOMIDL__
  59.         implementation
  60.         {
  61.             majorversion = somClassMajorVersion;
  62.             minorversion = somClassMinorVersion;
  63.             
  64.             functionprefix = PaletteExt__;
  65.     
  66.             override:
  67.                 somInit,
  68.                 somUninit,
  69.                 InitExtension,
  70.                 Acquire,
  71.                 Release;
  72.             releaseorder:
  73.                 Show,
  74.                 Hide,
  75.                 IsPaletteVisible,
  76.                 Move,
  77.                 GetLocation,
  78.                 SetClient;
  79.     
  80. #ifdef __PRIVATE__
  81.             passthru C_xh =
  82.             "class SampleCode_ScriptRunner;";
  83.         
  84.             SampleCode_ScriptRunner        fOwner;
  85. #endif 
  86.         };
  87. #endif
  88.     };
  89. };
  90.  
  91. #pragma somemittypes off
  92.  
  93. #endif
  94.